﻿<Window x:Class="BlockMix.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" 
        xmlns:local="clr-namespace:BlockMix.GamePanels"
        Loaded="Window_Loaded">
    <Window.Resources>
        <Style x:Key="AsSeenOnTv">
            <Setter Property="TextElement.FontFamily" Value="./Resources/#As Seen On Tv" />
        </Style>
    </Window.Resources>
    <Grid>
        <Canvas>
            <Rectangle x:Name="background" Width="800" Height="450"/>
        </Canvas>
        <!--<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
            <Canvas Margin="0,0,0,0"/>
                
        </StackPanel>-->
        <local:LoadingPanel x:Name="panelLoading" Background="Transparent"
                            Visibility="Visible" VerticalAlignment="Top" HorizontalAlignment="Left" BorderBrush="Red" BorderThickness="2"
                            LoadingSuccess="LoadingPanel_Success" LoadingFailed="LoadingPanel_Failed"
                            />
        <!-- menu and gameplay panel are initialized by the loading panel -->
        <local:MenuPanel x:Name="panelMenu" Background="Transparent"
                            Visibility="Collapsed" VerticalAlignment="Top" HorizontalAlignment="Left" BorderBrush="Yellow" BorderThickness="2"
                            MenuClicked="MenuPanel_Clicked"/>
        <local:PlayPanel x:Name="panelPlay" Background="Transparent"
                            Visibility="Collapsed" VerticalAlignment="Top" HorizontalAlignment="Left" BorderBrush="Green" BorderThickness="2" />
    </Grid>
</Window>
